//
//  XGCollectionHeaderView.h
//  Instagram
//
//  Created by monkey on 2019/4/13.
//  Copyright © 2019 itcast. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XGCollectionHeaderViewDelegate;

@interface XGCollectionHeaderView : UICollectionReusableView

/// 代理
@property (nonatomic,weak) id<XGCollectionHeaderViewDelegate> delegate;
/// 用户模型
@property (nonatomic,strong) AVUser *user;


/// 编辑/关注按钮
- (UIButton *)editOrFocusButton;

@end

@protocol XGCollectionHeaderViewDelegate <NSObject>

@optional

- (void)collectionHeaderViewTopicCountDidClick:(XGCollectionHeaderView *)headerView;
- (void)collectionHeaderViewFansCountDidClick:(XGCollectionHeaderView *)headerView;
- (void)collectionHeaderViewFocusCountDidClick:(XGCollectionHeaderView *)headerView;
- (void)collectionHeaderViewEditOrFocusDidClick:(XGCollectionHeaderView *)headerView button:(UIButton *)button;

@end
